package com.example.gok_mall.reponseData;

import com.sun.prism.shader.FillEllipse_LinearGradient_PAD_AlphaTest_Loader;

//枚举
public enum ResponseCode {
    SUCCESS("0","操作成功"),
    FAIL("1","操作失败"),
    UN_AUTH("1001","暂无权限"),
    NEED_LOGIN("10","NEED_LOGIN"),
    ILLEGAL_ARGUMENT("2","ILLEGAL_ARGUMENT");


    private String code;
    private String msg;
    ResponseCode(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMage() {
        return msg;
    }

    public void setMage(String mage) {
        this.msg= mage;
    }

    @Override
    public String toString() {
        return "ResponseCode{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
